package org.javaboy.vhr.model;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Evaluation {
    private int id;
    private int employeeId;
    private String evaluation;
    private Date evaluationTime;
    private int hrId;
    private String employeeName;
    private String hrName;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(int employeeId) {
        this.employeeId = employeeId;
    }

    public String getEvaluation() {
        return evaluation;
    }

    public void setEvaluation(String evaluation) {
        this.evaluation = evaluation;
    }

    public String getEvaluationTime() {
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.evaluationTime);
    }

    public void setEvaluationTime(String evaluationTime) {
        SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        try {
            this.evaluationTime = f.parse(evaluationTime);
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }

    public int getHrId() {
        return hrId;
    }

    public void setHrId(int hrId) {
        this.hrId = hrId;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public String getHrName() {
        return hrName;
    }

    public void setHrName(String hrName) {
        this.hrName = hrName;
    }
}
